import re
'''
print(re.match("abc","abc xyz"))
print(re.match("xyz","abc xyz"))#匹配从第一个开始， 否则就会报错
print(re.search("abc","abc xyz"))
print(re.search("xyz","abc xyz"))
'''

'''
searchobj=re.search("abc","abc xyz")
print(searchobj.group())
print(searchobj.group(0))
'''

'''
searchobj=re.search(r"(.*)-is-(.*)","abc xyz-is-go")
print(searchobj.group())
print(searchobj.group(0))
print(searchobj.group(1))
print(searchobj.group(2))
'''